"""
ASGI config for demo project.

It exposes the ASGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/5.1/howto/deployment/asgi/
"""
# ASGI 是一种用于 Python Web 应用程序的异步服务器网关接口，它支持异步处理请求，适用于处理高并发、实时性要求较高的场景，如 WebSocket 连接、实时消息推送等。

import os

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'demo.settings')

application = get_asgi_application()
